import { Ajax } from '../utils/http';

export class ChangePasswordService {
    private data: Object;
    constructor(_data: Object,) {
        this.data = _data;
    }
    public async send() {
        let response;
        try {
            response = await new Ajax('/user/updatePwd', this.data).post();
        } catch (e) {
            throw e;
        }
        return response;
    }
}